﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;

using System.Text;
using System.Windows.Forms;
using Library;
using System.IO;
namespace Thi
{
    public partial class FrmXemLai : Form
    {
        DataTable dt = new DataTable();
        //public DGC_String mString = new DGC_String();



      

      

        public FrmXemLai(DataTable dt)
        {
            InitializeComponent();
            this.dt = dt;
            this.Load();
        }

        private void button6_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void Load()
        {
            try
            {               
                for (int i = 1; i <= dt.Rows.Count; i++)
                {
                    int k = 23 * i;
                    Label lb = new Label();
                    this.groupBox1.Controls.Add(lb);
                    lb.AutoSize = true;
                    lb.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
                    lb.Location = new System.Drawing.Point(12, k);
                    lb.Name = "lb"+i;
                    //lb.Size = new System.Drawing.Size(52, 18);
                    lb.TabIndex = 0;
                    lb.Text = dt.Rows[i - 1][0].ToString();
                }
            }
            catch (Exception)
            {                
                throw;
            }
        }
    }
}
